
public class maopao {

    public static void main(String[] arg){
        int[] test = {12,3341,522,756,87,48,26};
        maopaopao(test);
    }


    public static void maopaopao(int[] numbers) {
        int temp = 0;
        int size = numbers.length;
        for (int i = 1; i < size - 1; i++) {
            for (int j = 1; j < size - 1 - i; j++) {
                if (numbers[j] > numbers[j + 1]) {
                    temp = numbers[j];
                    numbers[j] = numbers[j + 1];
                    numbers[j + 1] = temp;
                }
            }
        }
        for (int a:numbers) {
            System.out.println(a);
        }
    }

}
